package src;
public class Fond extends ElementMap{
	//attributs
	private TypeFond type;
	
	//methodes
	public Fond(TypeFond t){
		super( -1,  -1);
		type = t;
		
		switch(t){
			case Mer:
				collision = true;
				sprite = "mer.jpg";
				break;
			case Montagne:
				collision = true;
				sprite = "montagne.jpg";
				break;
			case Prairie:
				collision = false;
				sprite = "prairie.jpg";
				break;
			default:
				break;
			}
	}
	
	
	public String toString(){
		String s = type.toString();
		return s;
	}

	public TypeFond getType() {
		return type;
	}

	public void setType(TypeFond type) {
		this.type = type;
	}
	
}
